package file;

import java.io.FileOutputStream;
import java.io.OutputStream;

public class OutputStreamDemo {
    public static void main(String[] args) {
        try(OutputStream os = new FileOutputStream("D:/temp/b.txt")){
            os.write('h');
            os.write('e');
            os.write('l');
            os.write('l');
            os.write('o');
            os.flush();

        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
